package com.graduation.community_manager.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.graduation.community_manager.entity.CmEleWaterEntity;
import com.graduation.community_manager.service.CmEleWaterService;
import com.graduation.community_manager.vo.PageCmEleWaterVO;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 用户水电费表
 *
 * @author wdh
 */
@RestController
@CrossOrigin
@RequestMapping("/cmEleWater")
public class CmEleWaterController {

    @Autowired
    private CmEleWaterService cmEleWaterService;

    /**
     * 分页
     */
    @ApiOperation(value = "获得用户水电费分页")
    @PostMapping("/page")
    public IPage<CmEleWaterEntity> cmEleWaterPage(@RequestBody PageCmEleWaterVO pageCmEleWaterVO){
        return cmEleWaterService.cmEleWaterPage(pageCmEleWaterVO);
    }

}
